﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Entity
{
    public enum LogLevel
    {
        Debug,
        Info, Warn, Error
    }
    public class LogInfo
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "序号")]//数据库是自增才配自增 
        public int Id { get; set; }

        [SugarColumn(ColumnDescription = "时间")]
        public DateTime Time { get; set; }
        [SugarColumn(ColumnDescription = "信息")]

        public string Info { get; set; }
        [SugarColumn(ColumnDescription = "等级")]

        public LogLevel LogLevel { get; set; }
    }
}
